<?php
class CommentController extends PlatformController
{
	public function indexAction()
	{
		$comment=Factory::M('CommentModel');
		$cmtInfo=$comment->getCmtInfo();
		$this->assign('cmtInfo',$cmtInfo);
		//分页
		$rowsCount=$comment->getCmtsCount();
		$rowsPrePage=$GLOBALS['conf']['Page']['rowsPrePage'];
		$maxNum=$GLOBALS['conf']['Page']['maxNum'];
		$url="index.php?p=Back&c=Comment&a=index";
		$page=new Page($rowsCount,$rowsPrePage,$maxNum,$url);
		$strPage=$page->show();
		$this->assign('strpage',$strPage);
		$this->display('index.html');
	}
}